export default function checkNavBar(that){
  var selectedIndex = wx.getStorageSync('selectedIndex');
  if(selectedIndex == ''){
    selectedIndex = 0
  }
  if (typeof that.getTabBar === 'function' && that.getTabBar()) {
    that.getTabBar().setData({
      selected: selectedIndex
    })
  }
}